﻿using System.IO;
using System.Web.UI;

namespace Bussiness.Utilities {
    public class BasePage : Page {
        protected override void InitializeCulture() {
            var curCulObj = Session[DMUtil.LANG_SESSION_KEY];
            string currentCulture = null;
            if (curCulObj != null) currentCulture = curCulObj.ToString();

            if (string.IsNullOrEmpty(currentCulture)) {
                Session[DMUtil.LANG_SESSION_KEY] = DMUtil.LANG_VI_VN;
                currentCulture = DMUtil.LANG_VI_VN;
            }

            Culture = currentCulture;
            UICulture = currentCulture;
            base.InitializeCulture();
        }
    }
}